#ifndef GRAPHICSSCENE_H
#define GRAPHICSSCENE_H

#include <QObject>
#include  <graphicsitem.h>
#include <QGraphicsScene>
#include <QTime>
#include <QTimer>
class GraphicsScene : public QGraphicsScene
{
    Q_OBJECT
public:
    explicit GraphicsScene(QObject *parent = nullptr);
    void init();

    //随即显示老鼠
public slots:
    void showMouse();
    void startGame();
    void suspendGame(); //暂停
    void stopGame(); //停止

signals:

private:
    //一个图元数组
    GraphicsItem *items[4][4];
    QTimer *p_timer;

};

#endif // GRAPHICSSCENE_H
